package com.wydpp.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "sip-device", ignoreInvalidFields = true)
public class SipDeviceConfig {

	private String ip;

	/**
	 * 默认使用 0.0.0.0
	 */
	private String monitorIp = "0.0.0.0";

	private Integer port;

	private String domain;

	private String id;
	private String name;
	private String manufacturer;
	private String transport;

	private String deviceUrl;
	private String realTimeUrl;
	private String backPlayTime;
	private String backPlayUrl;
	private String realtimeClose;
	private String backClose;


	Integer ptzSpeed = 50;

	Integer keepaliveTimeOut = 255;

	Integer registerTimeInterval = 60;

	public void setIp(String ip) {
		this.ip = ip;
	}

	public void setMonitorIp(String monitorIp) {
		this.monitorIp = monitorIp;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public void setId(String id) {
		this.id = id;
	}



	public void setPtzSpeed(Integer ptzSpeed) {
		this.ptzSpeed = ptzSpeed;
	}

	public void setKeepaliveTimeOut(Integer keepaliveTimeOut) {
		this.keepaliveTimeOut = keepaliveTimeOut;
	}

	public void setRegisterTimeInterval(Integer registerTimeInterval) {
		this.registerTimeInterval = registerTimeInterval;
	}

	public String getMonitorIp() {
		return monitorIp;
	}

	public String getIp() {
		return ip;
	}


	public Integer getPort() {
		return port;
	}


	public String getDomain() {
		return domain;
	}


	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getManufacturer() {
		return manufacturer;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}

	public String getTransport() {
		return transport;
	}

	public void setTransport(String transport) {
		this.transport = transport;
	}

	public String getDeviceUrl() {
		return deviceUrl;
	}

	public void setDeviceUrl(String deviceUrl) {
		this.deviceUrl = deviceUrl;
	}

	public String getBackPlayUrl() {
		return backPlayUrl;
	}

	public void setBackPlayUrl(String backPlayUrl) {
		this.backPlayUrl = backPlayUrl;
	}

	public String getBackPlayTime() {
		return backPlayTime;
	}

	public void setBackPlayTime(String backPlayTime) {
		this.backPlayTime = backPlayTime;
	}

	public String getRealTimeUrl() {
		return realTimeUrl;
	}

	public void setRealTimeUrl(String realTimeUrl) {
		this.realTimeUrl = realTimeUrl;
	}

	public String getRealtimeClose() {
		return realtimeClose;
	}

	public void setRealtimeClose(String realtimeClose) {
		this.realtimeClose = realtimeClose;
	}

	public String getBackClose() {
		return backClose;
	}

	public void setBackClose(String backClose) {
		this.backClose = backClose;
	}

	public Integer getPtzSpeed() {
		return ptzSpeed;
	}

	public Integer getKeepaliveTimeOut() {
		return keepaliveTimeOut;
	}

	public Integer getRegisterTimeInterval() {
		return registerTimeInterval;
	}
}
